    <!--导航部分-->
    <div class="navbar navbar-inverse navbar-fixed-top feely-navbar" role="navigation">
        <div class="navbar-inner">
            <!--桌面版导航-->
            <div class="container hidden-phone">
                <a class="brand" href="/">FeelyBlog</a>
                <ul class="nav">
                <eq name="active" value="INDEX">
                    <li class="active"><a href="/">首页</a></li>
                <else />
                    <li><a href="/">首页</a></li>
                </eq>
                
                <eq name="active" value="BLOG">
                    <li class="active"><a href="/blog/">文章</a></li>
                <else />
                    <li><a href="/blog/">文章</a></li>
                </eq>
                
                <eq name="active" value="SEARCH">
                    <li class="active"><a href="/search/">搜索</a></li>
                <else />
                    <li><a href="/search/">搜索</a></li>
                </eq>
                
                <eq name="active" value="ABOUT">
                    <li class="active"><a href="/about/">关于</a></li>
                <else />
                    <li><a href="/about/">关于</a></li>
                </eq>
                    
                </ul>
                <ul class="nav pull-right">
                    <eq name="Think.session.login" value="1">
                        <li><a href="/admin/">{$Think.session.username}</a></li>
                        <li><a href="#" onClick="unlogin()">注销</a></li>
                    <else />
                        <li><a href="/login/">登录</a></li>
                    </eq>
                </ul>
            </div>
            <!--手机版导航-->
            <div class="container visible-phone">
                <a class="brand" href="/">FeelyBlog</a>
                <div class="btn-group pull-right">
                    <a class="btn btn-inverse dropdown-toggle" data-toggle="dropdown" herf="#">
                        <i class="icon-list"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <eq name="active" value="INDEX">
                            <li class="active"><a href="/">首页</a></li>
                        <else />
                            <li><a href="/">首页</a></li>
                        </eq>
                
                        <eq name="active" value="BLOG">
                            <li class="active"><a href="/blog/">文章</a></li>
                        <else />
                            <li><a href="/blog/">文章</a></li>
                        </eq>
                
                        <eq name="active" value="SEARCH">
                            <li class="active"><a href="/search/">搜索</a></li>
                        <else />
                            <li><a href="/search/">搜索</a></li>
                        </eq>
                
                        <eq name="active" value="ABOUT">
                            <li class="active"><a href="/about/">关于</a></li>
                        <else />
                            <li><a href="/about/">关于</a></li>
                        </eq>
                        
                        <li class="divider"></li>
                        <eq name="Think.session.login" value="1">
                            <li><a href="#" onClick="unlogin()">注销</a></li>
                        <else />
                            <li><a href="/login/">登录</a></li>
                        </eq>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
    function unlogin(){
        $.get("/login/unlogin",{},function(data){
            if(data=="success"){
                alert("成功注销");
                window.location.href="/";
            }else{
                alert("注销失败"+data);
            }
        });
    }
    </script>